<?php

namespace app\api\controller;

use app\api\service\ServicePackageService;
use app\common\controller\Api;

class ServicePackage extends Api
{
    protected $noNeedLogin = ['details'];
    protected $noNeedRight = ['*'];

    /**
     * 详情
     *
     */
    public function details(){
        $data = $this->request->get();
        $res = ServicePackageService::getServicePackageDetails($data);
        return json($res);
    }

    /**
     * 接送服务价格
     *
     */
    public function transfer_price()
    {
        $data = $this->request->post();
        $res = ServicePackageService::getTransferPrice($data);
        return json($res);
    }

    /**
     * 生活服务价格
     *
     */
    public function life_price()
    {
        $data = $this->request->post();
        $res = ServicePackageService::getLifePrice($data);
        return json($res);
    }

    /**
     * 定制服务
     *
     */
    public function customized()
    {
        $data = $this->request->post();
        $res = ServicePackageService::getCustomServiceList($data);
        return json($res);
    }
}